const {DataTypes, Model} = require('sequelize');
const sequelize = require('../index');

class User extends Model {
}

User.init({
    name: DataTypes.TEXT,
    favoriteColor: {
        type: DataTypes.TEXT,
        defaultValue: 'green'
    },
    age: DataTypes.INTEGER,
    cash: DataTypes.INTEGER
}, {
    sequelize, // 传递连接实例
});
